<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@include file="../../common/includeBaseSet.jsp" %>
<%@include file="../../common/includeSystemSet.jsp" %>
<%@include file="../../common/operation_forbid.jsp" %>
<%@include file="../../common/jsVersion.jsp" %>
<script type="text/javascript">
   function setProjectHouseType(){
	   var url="${jypath}/estate/projectHouseType/index?projectId=${project.id}&menu=${menu}";
	   window.location.href=url;
   }  
   
   function toBatchUpdate(){
	   var url="${jypath}/estate/projectRoom/toBatchUpdate?projectId=${project.id}";
	   window.location.href=url;
   } 
   
   	function toBatchImport(){
	   var id = "${project.id}";
	   var merchantId = "${project.merchantId}";
        var tabKey = "batchImp_" + id;
        var url = "/estate/import/index?id=${project.id}&menu=${menu}";
        if(merchantId== "1" && merchantId == "3"){
            url = "/estate/import/indexLC?id=${project.id}&menu=${menu}";
        }
       	parent.openMenu("0",tabKey,"","批量导入",url);
   	}
   
   function sendStaticSalePmo(){
	   
	   $.ajax({
			 url: "${jypath}/estate/project/sendStaticSalePmo",
		     type: "post",
		     dataType:'json', 
		     async:false,
		     data:{"projectId":"${project.id}"},
		     success:function(data){
		    	 var flag = "alert alert-warning fade in";
			  	 var msg = "推送失败";
			  	 if(data.success == true){
			  		 flag = "alert alert-success fade in";
			  		 msg = "推送成功";
			  	 } 
			  	 var html = '<div id="myAlert" class="'+flag+'">'
			  		      + '<a href="#" class="close" data-dismiss="alert">&times;</a>'
			  		      + '<strong>'+msg+'</strong></div>';
	  	 		 $("#divAlert").html(html);
  	 
  	 			 setTimeout('$("#myAlert").alert("close");',2000);
		     }
	    });
   }
   
   function toBack(){
 	   var url="${jypath}/estate/project/index?menu="+$("#menuId").val();
	   window.location.href=url;
   }
   
   $(function(){

	   $(".imgblock").click(function(){
		  var checkImg = $(this).children().attr("src");
		  var array = new Array();
		  var parentId =  $(this).parent().attr("id");
		  array.push({ url:checkImg,caption: getFileName(checkImg),options:{side:'left'}});
		  var allImg = $("#"+parentId+ " .imgblock img");
		 	for(var i=0;i<allImg.length;i++){
		 		if(allImg.eq(i).attr("src")!=checkImg){
		 			array.push({ url:allImg.eq(i).attr("src") , caption: getFileName(allImg.eq(i).attr("src")),options:{side:'left'}});
		 		}
		 	}
		 	Strip.show(array);
	   });
	   
	   var industData = ${industData};
	   if(industData){
		   $.each(industData, function(index,obj){
			   getIndustDatas(obj);
		   });
	   }
   });
   
   function getIndustDatas(data){
		   var trLength = $("#baseTypeTable tbody tr").length;
		   trLength = trLength + 1;
			var html = "";
			//未售 = 可售- 已售
			var vas = data.salableAcreag-data.totalCalculateArea;
			html+="<tr>";
			html+="<td >"+data.industMark+"</td>";
			html+="<td >"+data.targetValue+"</td>";
			html+="<td>"+data.salableAcreag.toFixed(6)+"</td>";
			html+="<td >"+data.totalCalculateArea.toFixed(6)+"</td>";
			html+="<td>"+vas.toFixed(6)+"</td>";
			html+="<td>"+data.targetSaleValue/10000+"</td>";
			html+="<td >"+data.lastPrice.toFixed(6)+"</td>";
			html+="<td>"+data.dynamicValue.toFixed(6)+"</td>";
			
			for(var i=0;i<data.array.length;i++){
				var val = data.array[i].value;
				html+="<td >"+val.toFixed(6)+"</td>";
			}
			html+="</tr>";
			$("#baseTypeTable tbody").append(html);
   }
   function replaceFileUrl(ftpUrl){
   	if(ftpUrl==null||ftpUrl==""){
   		return ftpUrl;
   	}
   	//取得文件明
   	var fileName=ftpUrl.substring(ftpUrl.indexOf("?")+1,ftpUrl.length);
   	ftpUrl=ftpUrl.replace(new RegExp("/","gm"),"?");  
   	ftpUrl=ftpUrl.substring(0,ftpUrl.indexOf("?fileName="));
   	return "?fileUrl="+ftpUrl+"&"+fileName;
   }
   
	function getFileName(ftpUrl){
		var fileName = ftpUrl.substring(ftpUrl.indexOf("=")+1,ftpUrl.length);
		var aLink = replaceFileUrl(ftpUrl);
		var abtn = "<a href='${jypath}/common/file/downloadFile"+aLink+"'>"+fileName+"</a>";
		return abtn;
	}
 
</script>
<script type="text/javascript" src="${jypath}/static/js/strip.min.js"></script>
<link rel="stylesheet" href="${jypath}/static/css/strip.css" />
<style type="text/css">
	.innerinputwrap .uploadimg{ margin-left:120px;}
	.uploadimg .inner:after{content:".";display:block;visibility:hidden;height:0;line-height:0;font-size:0;clear:both}
	.uploadimg .inner{zoom:1}
	.uploadimg .inner{ margin-left:-11px;}
	.uploadimg a{ float:left; display:block; width:108px; height:108px; border:solid 1px #ddd; margin-right:18px; margin-bottom:18px; cursor:pointer;}
	.uploadimg .checked{ border:dashed 1px #e74f44;}
	.uploadimg .add{ background:#eee url(${jypath}/resources/images/icon_add.png) no-repeat 50% 50%; border:dashed 1px #ddd;position:relative; overflow:hidden;}
	.uploadimg .add input{position:absolute;font-size:100px;right:0;top:0;opacity:0}
	.uploadimg .imgblock{ position:relative;}
	.uploadimg .imgblock:hover{ border:dashed 1px #e74f44;}
	.uploadimg .imgblock .close{ position:absolute; right:-11px; top:-11px; display:none; width:23px; height:23px; background:url(${jypath}/resources/images/icon_close.png) no-repeat;}
	.uploadimg .imgblock:hover .close{ display:block;}
	.uploadimgtt{ line-height:36px;}
</style>
<div id="divAlert">
	<!-- 警告框 -->
</div>
<div class="widget-main customBtn">
	 <c:forEach var="btn" items="${permitBtn}">
       	<c:choose>
			<c:when test="${btn.permission=='estate:import:importExcel'}">
				<button type="button" onclick="toBatchImport()"  class="btn btn-primary btn-sm">
					<span class="glyphicon glyphicon-minus">批量导入</span>
				</button>
				&emsp;
			</c:when>
			<c:when test="${btn.permission=='estate:projectRoom:saveBatchData'}">
				<button type="button" onclick="toBatchUpdate()"  class="btn btn-primary btn-sm">
					<span class="glyphicon glyphicon-minus">批量修改</span>
				</button>
				&emsp;
			</c:when>
			<c:when test="${btn.permission=='estate:projectHouseType:list'}">
				<button type="button" onclick="setProjectHouseType()" class="btn btn-primary btn-sm">
					<span class="glyphicon glyphicon-minus">设置户型</span>
				</button>	
				&emsp;
			</c:when>
			<c:when test="${btn.permission=='estate:project:sendStaticSalePmo'}">
				<button type="button" onclick="sendStaticSalePmo()" class="btn btn-primary btn-sm">
					<span class="glyphicon glyphicon-minus">推送到PMO</span>
				</button>
				&emsp;
			</c:when>
		</c:choose>
	</c:forEach>
	
	<button type="button" onclick="toBack()" class="btn btn-primary btn-sm">
		<span class="glyphicon glyphicon-minus">返回</span>
	</button>
	
</div>
<table  class="table table-bordered table-hover">
	<tr>
		<td
			style="background-color: #D8D8D8; font-size: 16px; font-weight: bold;"
			colspan="2">项目信息</td>
	</tr>
	<tr>
		<td width="50%"><b>项目名称：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPmo.pmoProjectName}</td>
		<td width="50%"><b>推广名称：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPmo.promotName}</td>
	</tr>
	<tr>
		<td width="50%"><b>开发周期：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPmo.devlopCycle}</td>
	</tr>
	
	<tr>
		<td><b> 分期数：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${project.stagesNum}</td>
		<td><b>所在城市：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${area.areaFullName}
		</td>
	</tr>
	<tr>
		<td><b>产品类型：&emsp;&emsp;&emsp;</b>&emsp;&emsp;
<%-- 		<c:choose>
				<c:when test="${project.projectType eq 99}">${project.remark}</c:when>
				<c:otherwise> ${projectTypeName} </c:otherwise>
		</c:choose> --%>
		${projectTypeName}${project.remark}
		</td>
		<td><b> 容积率：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${project.plotRatio}</td>
	</tr>

	<tr>
		<td><b>绿化率：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${project.greeningRate}%</td>
		<td><b>占地面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${project.floorSpace}万平方米</td>
	</tr>

	 <tr>
		<td><b>总户数：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPremisesIndustDataInfo.totalHouse}户</td>
		<td><b>车位数：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPremisesInfo.parking}个</td>
	</tr>

	<tr>
		<td><b>车位配比：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${staticSalesData.parkinRatio}</td>
		<td><b>销售热线：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${project.salesHotline}</td>
	</tr>

	<tr>
		<td><b>售楼地址：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${project.salesAddress}</td>
		<td><b>物业公司：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${project.propertyCompany}</td>
	</tr>

	<tr>
		<td><b>开发商名称：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${project.developerName}</td>
		<td><b>开发商地址：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${project.developerAddress}</td>
	</tr>

	<tr>
		<td><b>楼盘地址：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${project.premisesAddress}</td> 
		<td><b>产权年限：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${project.propertyYear}</td>
	</tr>


	<tr>
		<td><b>建造进度：&emsp;&emsp;&emsp;</b>&emsp;&emsp;
			${project.buildingSchedule}</td>
		<td><b>交付情况：&emsp;&emsp;&emsp;</b>&emsp;&emsp; <c:choose>
				<c:when test="${project.deliveryStatus eq 0}">未交付</c:when>
				<c:when test="${project.deliveryStatus eq 1}">已交付</c:when>
			</c:choose></td>
		
	</tr>

	<tr>	
	    <td><b>计划开工日期：&emsp;&emsp;&emsp;</b>&emsp;&emsp;<fmt:formatDate
				value="${project.startTime}" pattern="yyyy年MM月dd日" /></td>
		<td><b>计划交付日期：&emsp;&emsp;&emsp;</b>&emsp;&emsp;<fmt:formatDate
				value="${project.deliveryDate}" pattern="yyyy年MM月dd日" /></td>
	</tr>
	<tr>	
	    <td><b>实际开工日期：&emsp;&emsp;&emsp;</b>&emsp;&emsp;<fmt:formatDate
				value="${projectPmo.actualStartOperatDate}" pattern="yyyy年MM月dd日" /></td>
		<td><b>实际交付日期：&emsp;&emsp;&emsp;</b>&emsp;&emsp;<fmt:formatDate
				value="${projectPmo.actualDueDate}" pattern="yyyy年MM月dd日" /></td>
	</tr>
	<%-- <tr>	
	    <td><b>计划销售额：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPmo.planneSalesAmount}万元</td>
		<td><b>计划回款额：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPmo.planneBackAmount}万元</td>
	</tr> --%>
	<%-- <tr>	
	    <td><b>目标货值：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPmo.targetValue}万元</td>
		<td><b>目标销售均价：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPmo.targetAveragPrice}万元</td>
	</tr> --%>
	<tr>	
	    <td><b>项目开始日期：&emsp;&emsp;&emsp;</b>&emsp;&emsp;<fmt:formatDate
				value="${projectPmo.startDate}" pattern="yyyy年MM月dd日" /></td>
		<td><b>项目截止日期：&emsp;&emsp;&emsp;</b>&emsp;&emsp;<fmt:formatDate
				value="${projectPmo.endDate}" pattern="yyyy年MM月dd日" /></td>
	</tr>
	
		<tr>	
	    <td><b>计划首开日期：&emsp;&emsp;&emsp;</b>&emsp;&emsp;<fmt:formatDate
				value="${projectPmo.planneFirstDayStartOperat}" pattern="yyyy年MM月dd日" /></td>
		<td><b>实际首开日期：&emsp;&emsp;&emsp;</b>&emsp;&emsp;<fmt:formatDate
				value="${projectPmo.actualFirstDayStartOperat}" pattern="yyyy年MM月dd日" /></td>
	</tr>
		
		<tr>	
	    <td><b>计划竣工日期：&emsp;&emsp;&emsp;</b>&emsp;&emsp;<fmt:formatDate
				value="${projectPmo.planneCompleDate}" pattern="yyyy年MM月dd日" /></td>
		<td><b>实际竣工日期：&emsp;&emsp;&emsp;</b>&emsp;&emsp;<fmt:formatDate
				value="${projectPmo.actualCompleDate}" pattern="yyyy年MM月dd日" /></td>
	</tr>
	 <tr>	
	    <td><b>监理单位：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPmo.supervUnit}</td>
		<td><b>总包单位：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPmo.contraUnit}</td>
	</tr>
	<tr>	
	    <td><b>景观单位：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPmo.sightUnit}</td>
		<td><b>精装修单位：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPmo.decoraUnit}</td>
	</tr>
	<tr>	
	    <td><b>设计单位：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPmo.designUnit}</td>
		<%-- <td><b>自持面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPremisesIndustDataInfo.selfSustaiAcreag}万平方米</td> --%>
	</tr> 
		<tr>	
	    <td><b>栋数：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${staticSalesData.numberOfBuildi}栋</td>
		<td><b>赠送面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${presenAcreag}平方米</td>
	</tr>
	<tr>	
	  <%--   --%>
		<td><b>地下可售面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${staticSalesData.undergSalesAcreag}万平方米</td>
		<td><b>地上可售面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${staticSalesData.groundSalesAcreag}万平方米</td>
	</tr>
	
	
	<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;总目标销售收入：</b>&emsp;&emsp;
					 <fmt:formatNumber value="${targetSaleMoney+carTargetValue}" pattern="0.000000" maxFractionDigits="6"></fmt:formatNumber> 
					</td>
				</tr>
				
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;目标销售收入：</b>&emsp;&emsp;
					 <fmt:formatNumber value="${targetSaleMoney}" pattern="0.000000" maxFractionDigits="6"></fmt:formatNumber> 
					
					</td>
					<td width="50%"><b>&emsp;&emsp;&emsp;车位目标销售收入：</b>&emsp;&emsp;
					<c:if test="${carTargetValue!=0}">
					<fmt:formatNumber value="${carTargetValue}" pattern="0.000000" maxFractionDigits="6"></fmt:formatNumber>
					</c:if>
					
					
					</td>
				</tr>
    <tr>	
	 <td><b>可售套数：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPremisesInfo.sort}套</td>
	 
	 <td><b>可售面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp; 
	  <fmt:formatNumber value="${staticSalesData.salableAcreag}" pattern="0.000000" maxFractionDigits="6"></fmt:formatNumber>
	 万平方米 </td> 
	</tr>
	
	<tr>
	<%-- <td width="50%"><b>&emsp;&emsp;动态货值(含车位)：</b>&emsp;&emsp;
	                <fmt:formatNumber value="${dynamicValue}" pattern="0.0000" maxFractionDigits="4"></fmt:formatNumber>
	</td> --%>
	<td width="50%"><b>&emsp;&emsp;&emsp;自持面积（万平方米）：</b>&emsp;&emsp;
						
						<fmt:formatNumber value="${staticSalesData.selfSustaiAcreag}" pattern="0.000000" maxFractionDigits="6"></fmt:formatNumber>
	</td>
	</tr>
	
<%-- 	<tr>
	<td><b>目标销售均价：&emsp;&emsp;&emsp;</b>&emsp;&emsp;  </td> 
	<td><b>未来销售最低均价：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPremisesIndustDataInfo.groundSalesAcreag}万平方米</td>
	</tr> --%>
	
	
	<!-- <tr>
	<td><b>动态均价：&emsp;&emsp;&emsp;</b>&emsp;&emsp;  </td> 
	<td><b>车位动态均价：&emsp;&emsp;&emsp;</b>&emsp;&emsp;  </td> 
	</tr> -->
	
	
	    <tr>	
	    <%-- <td><b>目标货值版本：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPmo.targetValueVersion}套</td> --%>
		<td><b>建设类型：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPmo.constrType}</td>
	</tr>
	<tr>
		<td colspan="2">
			<b>装修标准：&emsp;&emsp;&emsp;</b>
			&emsp;&emsp;<c:choose>
				<c:when test="${project.renovationType eq 0}">精装</c:when>
				<c:when test="${project.renovationType eq 1}">毛坯</c:when>
				<c:when test="${project.renovationType eq 2}">其他${project.renovationDesc}</c:when>
			</c:choose>
		</td>
	</tr>
	<tr>
		<td><b>销售情况：&emsp;&emsp;&emsp;</b>&emsp;&emsp; <c:choose>
				<c:when test="${project.salesStatus eq 0}">在售</c:when>
				<c:when test="${project.salesStatus eq 1}">已售</c:when>
			</c:choose></td>
	<%-- 	<td>
			<b>预售证编号：&emsp;&emsp;&emsp;</b>${project.salesPermissionNo}
		</td> --%>
	</tr>
	<tr>
		<%-- <td colspan="1">
			<b>预售证领取日期：</b>&emsp;&emsp;
			<fmt:formatDate value="${project.salesPermissionDate}" pattern="yyyy年MM月dd日" />
		</td> --%>
		<td>
			<b>项目类型：&emsp;&emsp;&emsp;</b>${itemTypeName}
		</td>
	</tr>

<!-- 	<tr> -->
<!-- 		<td colspan="1"> -->
<!-- 			<b>预售证领取日期：</b>&emsp;&emsp; -->
<%-- 			<fmt:formatDate value="${project.salesPermissionDate}" pattern="yyyy年MM月dd日" /> --%>
<!-- 		</td> -->
<!-- 		<td> -->
<%-- 			<b>预售证编号：&emsp;&emsp;&emsp;</b>${project.salesPermissionNo} --%>
<!-- 		</td> -->
<!-- 	</tr> -->

 	<tr>
		<td colspan="2">
			<b>楼盘概况：&emsp;&emsp;&emsp;</b>
			&emsp;&emsp;${project.premisesCase}
		</td>
	</tr> 
	<tr>
		<td colspan="2">
			<b>项目配套：&emsp;&emsp;&emsp;</b>
			&emsp;&emsp;${project.projectRequirement}
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<b>交通情况：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${project.trafficCase}
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<div class="innerinputwrap innermiddle">
				<p class=" ttleft tt">项目LOGO：</p>
				<div class="uploadimg">
					<div class="inner mt10" id="project_logo_img_div">
						<c:forEach var="img" items="${imgList}">
							<c:choose>
								<c:when test="${img.projectImgType eq 1}">
									<a class="imgblock"> <img height="108px" width="108px" src="${img.normalUrl}" /></a>
								</c:when>
							</c:choose>

						</c:forEach>

					</div>

				</div>
			</div>
		</td>
	</tr>

	<tr>
		<td colspan="2">
			<div class="innerinputwrap innermiddle">
				<p class=" ttleft tt">总平图：</p>
				<div class="uploadimg">
					<div class="inner mt10" id="project_plane_img_div">
						<c:forEach var="img" items="${imgList}">
							<c:choose>
								<c:when test="${img.projectImgType eq 2}">
									<a class="imgblock"> <img height="108px" width="108px" src="${img.normalUrl}" /></a>
								</c:when>
							</c:choose>
						</c:forEach>
					</div>
				</div>
			</div>
		</td>
	</tr>

	<tr>
		<td colspan="2">
			<div class="innerinputwrap innermiddle">
				<p class=" ttleft tt">周边配套图：</p>
				<div class="uploadimg">
					<div class="inner mt10" id="project_periphery_img_div">
						<c:forEach var="img" items="${imgList}">
							<c:choose>
								<c:when test="${img.projectImgType eq 3}">
									<a class="imgblock"> <img height="108px" width="108px" src="${img.normalUrl}" /></a>
								</c:when>
							</c:choose>
						</c:forEach>
					</div>
				</div>
			</div>
		</td>
	</tr>

	<tr>
		<td colspan="2">
			<div class="innerinputwrap innermiddle">
				<p class=" ttleft tt">效果图：</p>
				<div class="uploadimg">
					<div class="inner mt10" id="project_effect_img_div">
						<c:forEach var="img" items="${imgList}">
							<c:choose>
								<c:when test="${img.projectImgType eq 7}">
									<a class="imgblock"> <img height="108px" width="108px" src="${img.normalUrl}" /></a>
								</c:when>
							</c:choose>
						</c:forEach>
					</div>
				</div>
			</div>
		</td>
	</tr>

	<tr>
		<td colspan="2">
			<div class="innerinputwrap innermiddle">
				<p class=" ttleft tt">交通图：</p>
				<div class="uploadimg">
					<div class="inner mt10" id="project_traffic_img_div">
						<c:forEach var="img" items="${imgList}">
							<c:choose>
								<c:when test="${img.projectImgType eq 4}">
									<a class="imgblock"> <img height="108px" width="108px" src="${img.normalUrl}" /></a>
								</c:when>
							</c:choose>
						</c:forEach>
					</div>
				</div>
			</div>
		</td>
	</tr>

	<tr>
		<td colspan="2">
			<div class="innerinputwrap innermiddle">
				<p class=" ttleft tt">实景图：</p>
				<div class="uploadimg">

					<div class="inner mt10" id="project_real_img_div">
						<c:forEach var="img" items="${imgList}">
							<c:choose>
								<c:when test="${img.projectImgType eq 5}">
									<a class="imgblock"> <img height="108px" width="108px" src="${img.normalUrl}" /></a>
								</c:when>
							</c:choose>
						</c:forEach>
					</div>
				</div>
			</div>
		</td>
	</tr>

	<tr>
		<td colspan="2">
			<div class="innerinputwrap innermiddle">
				<p class=" ttleft tt">样板图：</p>
				<div class="uploadimg">
					<div class="inner mt10" id="project_model_img_div">
						<c:forEach var="img" items="${imgList}">
							<c:choose>
								<c:when test="${img.projectImgType eq 6}">
									<a class="imgblock"> <img height="108px" width="108px" src="${img.normalUrl}" /></a>
								</c:when>
							</c:choose>
						</c:forEach>
					</div>
				</div>
			</div>
		</td>
	</tr>
</table>

<table class="table table-bordered table-hover">
	<tr>
		<td style="background-color: #D8D8D8; font-size: 16px; font-weight: bold;" colspan="2">
		   房产信息
		</td>
	</tr>
	<tr>
		<td width="50%"><b>所属社区：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectInfo.community}</td>
		<td><b>邮政编码：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectInfo.zipCode}</td>
	<%-- 	<td width="50%"><b>所属社区：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectInfo.street}</td> --%>
	</tr>
	
	<tr>
		<%-- <td><b>管理区地址：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectInfo.precinctAddress}</td> --%>
		
	</tr>
	
	<tr>
		<td><b>物业类型：&emsp;&emsp;&emsp;</b>&emsp;&emsp;
		<c:choose>
				<c:when test="${projectInfo.tenementType eq 1}">住宅</c:when>
				<c:when test="${projectInfo.tenementType eq 2}">非住宅</c:when>
		</c:choose>
		</td>
		<td><b>计费面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectInfo.billingArea}m²</td>
		<%-- <td><b>交付日期：&emsp;&emsp;&emsp;</b>&emsp;&emsp;<fmt:formatDate value="${projectInfo.deliveryDate}" pattern="yyyy年MM月dd日" /> </td> --%>
	</tr>

	
	<tr>
	
		
		<td><b>总建筑面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectInfo.overallFloorage}m² </td>
	
	</tr>
	
	<tr>
	<td><b>地下总建面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectInfo.undergroundArea}m² </td>
	<td><b>地上总建面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectInfo.groundArea}m² </td>
	
	</tr>
	
<%-- 	<tr>
	<td><b>可售面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPmo.undergSalesAcreag+projectPmo.groundSalesAcreag}m² </td>
	
	</tr> --%>
	
<%-- 	<tr>
	<td><b>地下可售面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPmo.undergSalesAcreag}m² </td>
	<td><b>地上可售面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPmo.groundSalesAcreag}m² </td>
	
	</tr> --%>
	
	
		<tr>
		<%-- <td><b>可出租面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectInfo.rentableArea}m² </td> --%>
		<td><b>自用面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectInfo.ownArea}m²</td>
	</tr>
	
	 <tr>
		<td><b>地下停车场面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${undergroundParkingArea}m² </td>
		<td><b>地下停车场数量：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${undergroundParkingNum}个</td>
	</tr>
	
	<tr>
		<td><b>绿化面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectInfo.greenSpace}m²</td>
		<td><b>占地面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectInfo.floorSpace}m²</td>
	</tr>
	
		<tr>
		<%-- <td><b>住宅建筑面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectInfo.housingArea}m²</td> --%>
		<td><b>四至边界： &emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectInfo.fourBorder}</td>
		<td><b>机动车停车位： &emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPremisesInfo.groundMotor+projectPremisesInfo.groundNonMotor}</td>
	</tr>
	
	<tr>
		<%-- <td><b>停车位：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPremisesInfo.parking}个</td> --%>
		<td><b>地上机动车车位： &emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPremisesInfo.groundMotor}个</td>
	</tr>
	
		<tr>
		<td><b>地下机动车位：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPremisesInfo.undergroundMotor}个</td>
		<td><b>地上非机动车位： &emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPremisesInfo.groundNonMotor}个</td>
	</tr>
	 
	<tr>
		<td><b>地下非机动车位：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectPremisesInfo.undergroundNonMotor}个</td>
		 <td><b>总户数： &emsp;&emsp;&emsp;</b>&emsp;&emsp;${staticSalesData.totalHouse}</td>  
	</tr>
	
	<tr>
		<td><b>已售面积：&emsp;&emsp;&emsp;</b>&emsp;&emsp;
		<fmt:formatNumber value="${dynamiSalesData.soldAcreag}" pattern="0.000000" maxFractionDigits="6"></fmt:formatNumber>
		万平方米</td>
		<td><b>已售车位数： &emsp;&emsp;&emsp;</b>&emsp;&emsp;${dynamiSalesData.soldParkinSpace}个</td> 
	</tr>
	
	<tr>
		<td><b>地上机动已售车位：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${pmoSaleDataGround.totalRowCount}个</td>
		<td><b>地下机动已售车位： &emsp;&emsp;&emsp;</b>&emsp;&emsp;${pmoSaleDataUndger.totalRowCount}个</td> 
	</tr>
	
	<tr>
		<td><b>地上机动已售车位金额：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${pmoSaleDataGround.totalSignAmount}元</td>
		<td><b>地下机动已售车位金额： &emsp;&emsp;&emsp;</b>&emsp;&emsp;${pmoSaleDataUndger.totalSignAmount}元</td> 
	</tr>
	
	<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;车位目标销售均价：</b>&emsp;&emsp;
					<c:if test="${not empty staticSalesData.targetPriceOfParkinSpace}">
					<fmt:formatNumber value="${staticSalesData.targetPriceOfParkinSpace[0].targetPriceOfParkinSpace}" pattern="0.000000" maxFractionDigits="6"></fmt:formatNumber>[${staticSalesData.targetPriceOfParkinSpace[0].targetPriceOfParkinVersion}]
					</c:if>
					
					
					</td>
					<td width="50%"><b>&emsp;&emsp;&emsp;目标销售均价：</b>&emsp;&emsp;
					<c:if test="${not empty staticSalesData.targetAveragPrice}">
					<fmt:formatNumber value="${staticSalesData.targetAveragPrice[0].targetAveragPrice}" pattern="0.000000" maxFractionDigits="6"></fmt:formatNumber>[${staticSalesData.targetAveragPrice[0].targetAveragPriceVersion}]
					</c:if>
					
					
					</td>
					
					
				</tr>
				
				<tr>
				<td width="50%"><b>&emsp;&emsp;&emsp; 目标货值:</b>&emsp;&emsp;
				<c:if test="${not empty staticSalesData.targetValue}">
				<fmt:formatNumber value="${staticSalesData.targetValue[0].targetValue}" pattern="0.000000" maxFractionDigits="6"></fmt:formatNumber>[${staticSalesData.targetValue[0].targetValueVersion}]
				</c:if>
				 </td>
				 </tr>
				<tr>
				<td width="50%"><b>&emsp;&emsp;&emsp;未来销售最低均价：</b>&emsp;&emsp;
				<c:if test="${not empty dynamiSalesData.lowestAveragPriceInFuture}">
					<fmt:formatNumber value="${dynamiSalesData.lowestAveragPriceInFuture}" pattern="0.000000" maxFractionDigits="6"></fmt:formatNumber>
					</c:if>
					
				</td>
				</tr>
				<%-- <tr>
				<td width="50%"><b>&emsp;&emsp;&emsp; 动态货值(不含车位):</b>&emsp;&emsp;
				<c:if test="${room_m2!=0}">
				<fmt:formatNumber value="${room_m2}" pattern="0.000000" maxFractionDigits="6"></fmt:formatNumber>
				</c:if>
				 </td>
				 
				 <td width="50%"><b>&emsp;&emsp;&emsp; 车位动态货值:</b>&emsp;&emsp;
				<c:if test="${car_m1!=0}">
				<fmt:formatNumber value="${car_m1}" pattern="0.000000" maxFractionDigits="6"></fmt:formatNumber>
				</c:if>
				 </td>
				 
				 
				</tr> --%>
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;车位动态均价：</b>&emsp;&emsp;
					<c:if test="${not empty dynamiSalesData.averagPriceOfParkinSpace}">
					 <fmt:formatNumber value="${dynamiSalesData.averagPriceOfParkinSpace}" pattern="0.000000" maxFractionDigits="6"></fmt:formatNumber> 
					</c:if>
					
					
					</td>
					<td width="50%"><b>&emsp;&emsp;&emsp;动态均价：</b>&emsp;&emsp;
					<c:if test="${not empty dynamiSalesData.dynamiAveragPrice}">
					 <fmt:formatNumber value="${dynamiSalesData.dynamiAveragPrice}" pattern="0.000000" maxFractionDigits="6"></fmt:formatNumber> 
					</c:if>
					
					
					
					</td>
					
					
				</tr>
				
				
	
	<%-- <tr>
		<td><b>常住人口数：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectInfo.permanentPopulation}</td>
		<td><b>总人口数： &emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectInfo.totalPopulation}</td>
	</tr>
	
	<tr>
		<td><b>暂住人口数：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectInfo.temporaryPopulation}</td>
		<td><b>管理区负责人： &emsp;&emsp;&emsp;</b>&emsp;&emsp;	${projectInfo.principal}</td>
	</tr>  --%>
	 
	
</table>

<table class="table table-bordered table-hover">
	<tr>
		<td style="background-color: #D8D8D8; font-size: 16px; font-weight: bold;" colspan="2">
		  项目设置
		</td>
	</tr>
	<tr style="display:none">
		<td width="50%"><b>预定默认定金：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectSetting.defaultEarnest}元 </td>
		<td width="50%"><b>签约能否修改备案：&emsp;&emsp;&emsp;</b>&emsp;&emsp;
			<c:choose>
					<c:when test="${projectSetting.signupRecordChange eq 0}">不能</c:when>
					<c:when test="${projectSetting.signupRecordChange eq 1}">能</c:when>
			</c:choose>
		</td>
	</tr>
	
	<tr style="display:none">
		<td><b>预定能否修改折扣：&emsp;&emsp;&emsp;</b>&emsp;&emsp;
		<c:choose>
				<c:when test="${projectSetting.reserveDiscountChange eq 0}">不能</c:when>
				<c:when test="${projectSetting.reserveDiscountChange eq 1}">能</c:when>
		</c:choose>
		
		</td>
		<td><b>无房认筹是否精选到组团：&emsp;&emsp;&emsp;</b>&emsp;&emsp;
		<c:choose>
				<c:when test="${projectSetting.needToPremises eq 0}">不能</c:when>
				<c:when test="${projectSetting.needToPremises eq 1}">能</c:when>
		</c:choose></td>
	</tr >
	
	<tr style="display:none">
		<td colspan="2">
			<b>开盘时间：&emsp;&emsp;&emsp;</b>&emsp;&emsp;
			<fmt:formatDate value="${projectSetting.openTime}" pattern="yyyy年MM月dd日" />
		</td>
	</tr>
		
	<tr style="display:none">
		<td><b>开盘前案场客户有效期：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectSetting.validBeforeField}天 </td>
		<td>
			<b>开盘后案场客户有效期：&emsp;&emsp;&emsp;</b>&emsp;&emsp;
			${projectSetting.validAfterField}天
		</td>
	</tr>
	<tr style="display:none">
		<td><b>开盘前渠道客户有效期：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectSetting.validBeforeChannel}天 </td>
		<td><b>开盘后渠道客户有效期：&emsp;&emsp;&emsp;</b>&emsp;&emsp;
			${projectSetting.validAfterChannel}天
		</td>
	</tr>
	<tr style="display:none">
		<td colspan="2">
			<b>是否启用打印有效协议：&emsp;&emsp;&emsp;</b>&emsp;&emsp;
			 <c:choose>
				<c:when test="${projectSetting.validPrint eq 0}">是</c:when>
				<c:when test="${projectSetting.validPrint eq 1}">否</c:when>
		    </c:choose>
		</td>
	</tr>
	<tr>
		<td>
			<b>公司总经理：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${generalManager.userName}
		</td>
		<td><b>项目总：&emsp;&emsp;&emsp;</b>&emsp;&emsp;${projectLeader.userName} </td>
	</tr> 
	<tr>
		<td><b>经纪总：&emsp;&emsp;&emsp;</b>&emsp;&emsp;
			 ${saleLeader.userName}
		</td>
		<td>
			<b>销售经理：&emsp;&emsp;&emsp;</b>&emsp;&emsp;
			${fieldLeader.userName}
		</td>
	</tr> 
	 
	<tr>
		<td>
			<b>销管经理：&emsp;&emsp;&emsp;</b>&emsp;&emsp;
			${maLeader.userName}
		</td>
		<td>
			<b>财务经理：&emsp;&emsp;&emsp;</b>&emsp;&emsp;
			${financeLeader.userName}
		</td>
	</tr>  
	
	<tr>
		<td>
			<b>区域领导：&emsp;&emsp;&emsp;</b>&emsp;&emsp;
			${areaLeader.userName}
		</td>
		<td>
			<b>区域经理：&emsp;&emsp;&emsp;</b>&emsp;&emsp;
			${areaManager.userName}
		</td>
	</tr>
	
	
	   
</table>
	
	<!-- <div class="table-responsive">
	 		<table id="baseTypeTable" class="table table-striped table-bordered" style="min-width:5000px;">
	 			<thead>
					<tr>
						<th class="center" rowspan="3">业态</th>
						<th class="center" rowspan ="3">自持货值</th>
						<th class="center" rowspan ="3">可售面积(万平方米)/个</th>
						<th class="center" rowspan ="3">已售面积(万平方米)/个</th>
						<th class="center" rowspan ="3">未售面积(万平方米)/个</th>
						<th class="center" rowspan ="3">目标销售收入</th>
						<th class="center" rowspan ="3">未来销售最低均价</th>
						<th class="center" rowspan ="3">动态货值</th>
						<th class="center" colspan ="3">*****版本*****</th>
				
					</tr>
					<tr>
						<th class="center" colspan ="3">最新版</th>
						
						
					</tr>
					
					<tr>
					    <th class="center">目标销售均价(万元)</th>
						<th class="center">目标货值</th>
						<th class="center">动态均价</th>
					   	
						
					</tr>
					
					
				</thead>
				<tbody></tbody>
	 		</table>
 		</div> -->
 		
 		

		<div class="" style="margin-top: 20px;">
			<table  class="table table-bordered table-hover">
				<tr>
					<td style="background-color: #D8D8D8; font-size: 16px; font-weight: bold;" colspan="10">动态货值偏差原因</td>
				</tr>
				<tr>
					<th class="center" width="15%">目标货值</th>
					<th class="center" width="15%">动态货值</th>
					<th class="center" width="10%">差额</th>
					<th class="center" width="50%">偏差原因</th>
				</tr>
			<tbody>
			
				<tr>
					<td><fmt:formatNumber value="${dynamiSalesData.targetValue}" pattern="0.000000"></fmt:formatNumber></td>
					<td><fmt:formatNumber value="${dynamiSalesData.dynamiValue}" pattern="0.000000"></fmt:formatNumber></td>
					<td><fmt:formatNumber value="${dynamiSalesData.targetValue-dynamiSalesData.dynamiValue}" pattern="0.000000"></fmt:formatNumber></td>
					<td>
					<c:if test="${(dynamiSalesData.reasonDynamiValueDeviat != 'undefined' && not empty dynamiSalesData.reasonDynamiValueDeviat)}">
					${dynamiSalesData.reasonDynamiValueDeviat}
					</c:if>
				</tr>
			</tbody>
			</table>
	  	</div>
		<div class="">
			<table  class="table table-bordered table-hover">
				<tr>
					<td style="background-color: #D8D8D8; font-size: 16px; font-weight: bold;" colspan="10">销售指标信息</td>
				</tr>
				<tr>
					<th class="center" width="10%">月份</th>
					<th class="center" width="15%">计划销售额</th>
					<th class="center" width="15%">实际销售额</th>
					<th class="center" width="10%">差额</th>
					<th class="center" width="50%">偏差原因</th>
				</tr>
			<tbody>
			<c:forEach  var="srpSale" items="${srpSaleMap}">
				<tr>
					<td>${srpSale.saleMonth }</td>
					<td>${srpSale.salePlan }</td>
					<td>${srpSale.saleActual }</td>
					<td>${srpSale.saleDiff }</td>
					<td>
					<c:if test="${(srpSale.saleDiffReason != 'undefined' && not empty srpSale.saleDiffReason)}">
					${srpSale.saleDiffReason}
					</c:if>
					</td>
				</tr>
			</c:forEach>
			</tbody>
			</table>
	  	</div>
	  	
	  	<div class="">
			<table  class="table table-bordered table-hover">
				<tr>
					<td style="background-color: #D8D8D8; font-size: 16px; font-weight: bold;" colspan="10">回款指标信息</td>
				</tr>
				<tr>
					<th class="center" width="10%">月份</th>
					<th class="center" width="15%">计划回款额</th>
					<th class="center" width="15%">实际回款额</th>
					<th class="center" width="10%">差额</th>
					<th class="center" width="50%">偏差原因</th>
				</tr>
			<tbody>
			<c:forEach  var="srpReturn" items="${srpReturnMap}">
				<tr>
					<td>${srpReturn.saleMonth }</td>
					<td>${srpReturn.salePlan }</td>
					<td>${srpReturn.saleActual }</td>
					<td>${srpReturn.saleDiff }</td>
					<td>
					<c:if test="${(srpReturn.saleDiffReason != 'undefined' && not empty srpReturn.saleDiffReason)}">
					${srpReturn.saleDiffReason }
					</c:if>
					</td>
				</tr>
			</c:forEach>
			</tbody>
			</table>
	  	</div>


